Release 10.1A: OpenEdge Development:
Progress Dynamics Advanced Development


Using the API calls translatePhrase and getTranslation

Use the translatePhrase function call to access a text translation. This function returns translations for base text strings one at a time, as shown:

DYNAMIC-FUNCTION(“translatePhrase”:U IN gshTranslationManager, 
    INPUT pcText, 
    INPUT pdLanguageObj ) 

The translatePhrase function takes these parameters:

The translatePhrase function is basically a simplified version of the getTranslation call, which you can use when you need more than text strings translated, as shown:

RUN getTranslation IN gshTranslationManager 
    ( INPUT pdLanguageObj, 
      INPUT pcObjectName, 
      INPUT pcWidgetType, 
      INPUT pcWidgetName, 
      INPUT pdWidgetEntry, 
      OUTPUT pcOriginalLabel, 
      OUTPUT pcTranslatedLabel, 
      OUTPUT pcOriginalTooltip, 
      OUTPUT pcTranslatedTooltip )  

The getTranslation procedure takes these parameters:


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095